std::rand
From Cppreference
| Defined in header
<cstdlib> | ||
| int rand();
| ||
Returns a pseudo-random integral value between 0 and RAND_MAX.
srand() should be called before any calls to rand() to initialize the random number generator to random value.
Contents |
Parameters
(none)
Return value
pseudo-random integral value between 0 and RAND_MAX.
Example
| This section is incomplete |
See also
| initializes pseudo-random number generator (function) | |